<template>
	<view class="content">
		<view class="between">
			<view class="item center" v-for="(item,i) in tab" :key="i">
				<view class="img-bg center">
					<img class="img" :src="item.img" alt="">
				</view>
				<text class="name">{{ item.txt }}</text>
			</view>
		</view>
		<view class="container cc">
			<item class="item" v-for="(e,i) in list" :key="i" :item="item"> </item>
		</view>
		
	</view>
</template>
<script>
	import item from './core/item.vue'
	export default {
		components:{
			item
		},
		props:{
			
		},
		data(){
			return {
				tab:[
					{img:'/static/app/c3.png',txt:'打卡'},
					{img:'/static/app/c4.png',txt:'美食'},
					{img:'/static/app/c2.png',txt:'旋转木马'},
					{img:'/static/app/c1.png',txt:'旅行'},
				]
			}
		}
	}
</script>
<style lang="scss" scoped>
	.content{
		padding: 20px;
		.row{
			.item{
				margin:  0 10px;
				.img-bg{
					width: 88rpx;
					height: 88rpx;
					background: #F4F4F7;
					border-radius: 20rpx 20rpx 20rpx 20rpx;
					
				.img{
					width: 20px;
					height: 20px;
				}	
				
				}
				.name{
					margin-top: 5px;
					font-size: 24rpx;
					color: #232832;
				}
			}
		}
		.cc{
			justify-content: center;
			height: calc(100vh - 300px);
			overflow: auto;
			padding-bottom: 200px;
		}
		
	}
</style>